package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 积分商品评价对象 integral_commodity_evaluate
 * 
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("积分商品评价")
public class IntegralCommodityEvaluate 
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name = "id",value = "积分商品评价id",dataType = "Long")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(name = "clientId",value = "用户ID",dataType = "Long")
    private Long clientId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    @ApiModelProperty(name = "clientName",value = "用户名称",dataType = "String")
    private String clientName;

    /** 评分 */
    @Excel(name = "评分")
    @ApiModelProperty(name = "grade",value = "评分",dataType = "String")
    private String grade;

    /** 详情 */
    @Excel(name = "详情")
    @ApiModelProperty(name = "details",value = "详情",dataType = "String")
    private String details;

    /** 商品ID */
    @Excel(name = "商品ID")
    @ApiModelProperty(name = "commodityId",value = "商品ID",dataType = "Long")
    private Long commodityId;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间", dataType = "Date", notes = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy",value = "更新人",dataType = "String")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime",value = "更新时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date updatedTime;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(name = "commodityName",value = "商品名称",dataType = "String")
    private String commodityName;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(name = "img",value = "图片",dataType = "String")
    private String img;

    /** 回复 */
    @Excel(name = "回复")
    @ApiModelProperty(name = "reply",value = "回复",dataType = "String")
    private String reply;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setClientName(String clientName) 
    {
        this.clientName = clientName;
    }

    public String getClientName() 
    {
        return clientName;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientId", getClientId())
            .append("clientName", getClientName())
            .append("grade", getGrade())
            .append("details", getDetails())
            .append("commodityId", getCommodityId())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("commodityName", getCommodityName())
            .append("img", getImg())
            .append("reply", getReply())
            .toString();
    }
}
